package com.yq.day74.danli.v4;

/**
 * @author 3307235355@qq.com
 * @description
 * @since 2022/07/04 11:16
 *
 */

//线程安全的立即加载
public class Singleton4 {

    //直接复制
    private static Singleton4 instance = new Singleton4();

    //私有化构造方法
    private Singleton4() {
    }

    public static Singleton4 getInstance() {
        return instance;
    }

}



